#ifndef __BSP_H__
#define __BSP_H__


#define __BSP_DEBUG__
//#define __DEBUG_LOG__   //开启调试日志

#define  ENABLE_INT()     __set_PRIMASK(0)  /* 使能全局中断 */
#define  DISABLE_INT()    __set_PRIMASK(1)  /* 禁止全局中断 */

#ifdef __BSP_DEBUG__
    // #define BSP_LOG(format, ...) rt_kprintf(format, ##__VA_ARGS__)
    #define BSP_LOG(format, ...)   printf(format, ##__VA_ARGS__)
#else
    #define BSP_LOG(format, ...)
#endif

#ifdef __DEBUG_LOG__
    // #define DEBUG_LOG(format, ...) rt_kprintf(format, ##__VA_ARGS__)
    #define BSP_LOG(format, ...)   printf(format, ##__VA_ARGS__)
#else
    #define DEBUG_LOG(format, ...)
#endif



void bsp_init(void);
void bsp_idle(void);

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gd32f4xx.h"  
#include "bsp_typedef.h"
#include "bsp_uart_print.h"
#include "bsp_timer.h"
#include "bsp_uart5.h"
#include "bsp_queue.h"
#include "bsp_oled_spi.h"
#include "bsp_oled.h"

#endif /* __BSP_H__ */

